package com.ruoyi.receive.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.receive.mapper.SimReceiveMapper;
import com.ruoyi.receive.domain.SimReceive;
import com.ruoyi.receive.service.ISimReceiveService;

/**
 * 领用管理Service业务层处理
 * 
 * @author laifolai
 * @date 2023-02-07
 */
@Service
public class SimReceiveServiceImpl implements ISimReceiveService 
{
    @Autowired
    private SimReceiveMapper simReceiveMapper;

    /**
     * 查询领用管理
     * 
     * @param receiveId 领用管理主键
     * @return 领用管理
     */
    @Override
    public SimReceive selectSimReceiveByReceiveId(Long receiveId)
    {
        return simReceiveMapper.selectSimReceiveByReceiveId(receiveId);
    }

    /**
     * 查询领用管理列表
     * 
     * @param simReceive 领用管理
     * @return 领用管理
     */
    @Override
    public List<SimReceive> selectSimReceiveList(SimReceive simReceive)
    {
        return simReceiveMapper.selectSimReceiveList(simReceive);
    }

    /**
     * 新增领用管理
     * 
     * @param simReceive 领用管理
     * @return 结果
     */
    @Override
    public int insertSimReceive(SimReceive simReceive)
    {
        return simReceiveMapper.insertSimReceive(simReceive);
    }

    /**
     * 修改领用管理
     * 
     * @param simReceive 领用管理
     * @return 结果
     */
    @Override
    public int updateSimReceive(SimReceive simReceive)
    {
        return simReceiveMapper.updateSimReceive(simReceive);
    }

    /**
     * 批量删除领用管理
     * 
     * @param receiveIds 需要删除的领用管理主键
     * @return 结果
     */
    @Override
    public int deleteSimReceiveByReceiveIds(Long[] receiveIds)
    {
        return simReceiveMapper.deleteSimReceiveByReceiveIds(receiveIds);
    }

    /**
     * 删除领用管理信息
     * 
     * @param receiveId 领用管理主键
     * @return 结果
     */
    @Override
    public int deleteSimReceiveByReceiveId(Long receiveId)
    {
        return simReceiveMapper.deleteSimReceiveByReceiveId(receiveId);
    }
}
